'use strict'

module.exports = (app) => {
    const mongoose = app.mongoose
    const Schema = mongoose.Schema

    const UserSchema = new Schema({
        account: {
            type: String,
            unique: true,
            required: true,
        },
        token: {
            type: String,
            unique: true,
            required: true,
        },
    })
    return mongoose.model('User', UserSchema)
}
